package com.zhupanlin.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述信息：
 *
 * @author zhupanlin
 * @version 1.0
 * @date 2024/12/23 10:44
 */
@RestController
public class HelloController {

    /**
     * /admin/** ROLE_ADMIN
     * @return
     */
    @GetMapping("/admin/hello")
    public String admin() {
        return "hello admin";
    }

    /**
     * /user/** ROLE_USER
     * @return
     */
    @GetMapping("/user/hello")
    public String user() {
        return "hello user";
    }


    /**
     * /guest/** ROLE_USER ROLE_TEST
     * @return
     */
    @GetMapping("/guest/hello")
    public String guest() {
        return "hello guest";
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }

}
